package 
{
	
	import conf.ImageEditor;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	import mx.core.UIComponent;
	
	public class mySprite extends UIComponent
	{
		public var sprite:Sprite;
		

		public var tb:ImageEditor;
		public var _directPos:String; 
		
		public function mySprite(directPos:String)
		{
			super();
			_directPos = directPos;
			this.addEventListener( Event.ADDED_TO_STAGE, applicationCompleteHandler );
		
		}
		
		private function applicationCompleteHandler( event:Event ) : void
		{
			tb = new ImageEditor(parentApplication, _directPos);	
			this.addChild(tb);
		}

		
		override protected function createChildren():void
		{
			super.createChildren();
		}
	}
}